<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>后台管理</title>
    <link rel="stylesheet" href="/erp/css/layui.css">
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">企业资源管理系统</div>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="/erp/user/userinfo">
                    <img src="http://t.cn/RCzsdCq" class="layui-nav-img">
                    ${sessionScope["user"].wname}
                </a>
            </li>
            <li class="layui-nav-item"><a href="/erp/logout">退出</a></li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <c:forEach var="function" items="${functions}">
                    <li class="layui-nav-item ">
                        <c:if test="${function.state==1}">
                            <a class="" href="javascript:;">${function.fname}</a>
                            <dl class="layui-nav-child">
                                <c:forEach var="fun" items="${functions}">
                                    <c:if test="${fun.parentid==function.fid}">
                                        <dd><a href="/erp${fun.lianjie}" target="ma">${fun.fname}</a></dd>
                                    </c:if>
                                </c:forEach>
                            </dl>
                        </c:if>
                    </li>
                </c:forEach>
            </ul>
        </div>
    </div>

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div style="padding: 15px;">
            <iframe  frameborder="0" scrolling="no" src="/erp/user/queryFun" name="ma" style="width: 100%;height: 500px;"></iframe>
        </div>
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
        <span style="color:#1E90FF">© LEATHER SOFA.COM</span> - <span style="color:#8B008B">真皮沙发 | NO.1</span>
    </div>
</div>
<script src="/erp/js/jquery.js" type="text/javascript"></script>
<script src="/erp/js/layui.all.js" type="text/javascript"></script>
<script>
    //JavaScript代码区域
    layui.use('element', function () {
        var element = layui.element;

    });
</script>
</body>
</html>
